package com.ruoyi.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.app.domain.AppUser;
import com.ruoyi.app.vo.LoginUserVo;

import java.util.HashMap;
import java.util.List;

/**
 * appUserService接口
 *
 * @author jiang
 * @date 2024-11-14
 */
public interface IAppUserService extends IService<AppUser> {
    /**
     * 查询appUser
     *
     * @param id appUser主键
     * @return appUser
     */
    public AppUser selectAppUserById(Long id);

    /**
     * 查询appUser列表
     *
     * @param appUser appUser
     * @return appUser集合
     */
    public List<AppUser> selectAppUserList(AppUser appUser);

    /**
     * 新增appUser
     *
     * @param appUser appUser
     * @return 结果
     */
    public int insertAppUser(AppUser appUser);

    /**
     * 修改appUser
     *
     * @param appUser appUser
     * @return 结果
     */
    public int updateAppUser(AppUser appUser);

    /**
     * 批量删除appUser
     *
     * @param ids 需要删除的appUser主键集合
     * @return 结果
     */
    public int deleteAppUserByIds(Long[] ids);

    /**
     * 删除appUser信息
     *
     * @param id appUser主键
     * @return 结果
     */
    public int deleteAppUserById(Long id);

    HashMap login(LoginUserVo map);

    HashMap getLoginInfo(String phone);

    HashMap register(LoginUserVo map);

    HashMap<String, Object> wxLogin(LoginUserVo code);
}

